package com.yxc.plan.wolf.service.interfaces;

import com.yxc.plan.wolf.common.ServerResponse;
import com.yxc.plan.wolf.domain.Tweet;
import com.yxc.plan.wolf.domain.po.AddTweetPO;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
* @Description : 
* @Author      : abc@vanke.com
* @Date        : 2018-12-17 19:27
*/
public interface TweetService {

    ServerResponse add(AddTweetPO addTweetPO);

    ServerResponse<List<Tweet>> list(Long projectId, Pageable pageable);

    ServerResponse<List<Tweet>> search(Long projectId, String key);

    ServerResponse<List<Tweet>> noComment(Long projectId, Pageable pageable);
}
